

#include <iostream>

using namespace std;
int n, m, v;
int main()
{

	cin >> n >> m >> v;
	
	if (m < n - 1 || (n - 1) * (n - 2) / 2 + 1 < m)
	{
		cout << -1 << endl;
		return 0;
	}
	
	for (int i = 1; i <= n; i++)
	{
		if (i != v)
		{
			cout << i << " " << v << endl;
			m--;
		}
	}
	for (int i = 1; i <= n; i++)
	{
		for (int j = 1; j < i; j++)
		{
			if (!m) return 0;
			if (i == v || j == v) continue;
			cout << i << " " << j << endl;
			m--;
		}
	}
	return 0;
}




